#ifndef DPGRAPHICSVIEW_H
#define DPGRAPHICSVIEW_H

#include <QtGui/QtGui>
#include <QtCore/QtCore>
#include "dpclock.h"

class QLabel;
class QPixmap;
class DPGameLogic;
class DPClock;
class QPushButton;
class DPLevelWidget;
class QtAnimWidget;

class DPGraphicsView : public QGraphicsView
{
    Q_OBJECT
public:
    DPGraphicsView ( QWidget * parent = 0 );
    DPGraphicsView ( QGraphicsScene * scene, QWidget * parent = 0 );
    virtual ~DPGraphicsView(){}

protected:
	;
public slots:
    void updateView();
    void back();
    void start();
    void showLevelWidget(bool bShow = false);
	void showMainMenu(bool bShow = false);

	void finishedAnim(bool bForward = true);
private:
	QLabel*  mScoreLabel;
	QGraphicsProxyWidget* mLevelWidget;
	QGraphicsProxyWidget* mMainMenu;
    QPushButton* mNewGameBtn;
	QPushButton* mContinueBtn;
	QPushButton* mHelpBtn;
	QtAnimWidget* mNewGameAnim;
	QtAnimWidget* mContinueAnim;
	QtAnimWidget* mHelpAnim;
    QTimer* mTimer;
	DPClock* mClock;
};
#endif // DPGRAPHICSVIEW_H
